{template 'phpcms','header'}
<link href="{SKIN_PATH}video.css" rel="stylesheet" type="text/css" />
<div id="submenu">{tag_栏目页子菜单}</div>
<!--begin main-->
<div id="main">
  <!--begin left-->
  <div id="mian_l_1">
   <div class="video_nav_top ">
      <h3>影片搜索</h3>
    </div>
    <div class="video_nav">
    <form name="search" action="{SITE_URL}search.php" method="get" target="_blank">
    <input type="hidden" name="modelid" value="{$modelid}"  />
      <ul id="video_search">
        <li>
          <input type="text" name="title" size="19" />
          <input type="submit" name="dosubmit" value="搜索" class="btn_blue" />
        </li>
      </ul>
      </form>
    </div>
    <div class="video_nav_btm"></div>
    <div class="video_nav_top mar_10">
      <h3>影片索引</h3>
    </div>
    <div class="video_nav">
      <div class="clear"></div>
      <dl>
        <dt><a>按地区</a></dt>
        <dd>{loop $AREA $a}
	{php if($a[parentid]==1) break;}
	<a href="area.php?areaid={$a[areaid]}&catid={$catid}">{$a[name]}</a>
    {/loop}</dd>
      </dl>
      <div class="clear"></div>
      </div>
    <div class="video_nav_btm"></div>
   
    <div class="video_nav_top mar_10">
      <h3>影视排行</h3>
    </div>
    <div class="video_nav">
      <ul class="text_list_1">
       {php $arrchild = $CATEGORY[$catid][arrchildid]}
      {get sql="SELECT title, catid, url FROM phpcms_content a, phpcms_content_count b WHERE a.contentid=b.contentid AND a.status=99 AND a.catid IN ($arrchild) ORDER BY b.hits" rows="10" return="rs"}
     <li><a href="{$CATEGORY[$rs[catid]][url]}" class="gray">[{$CATEGORY[$rs[catid]][catname]}]</a><a href="{$rs[url]}">{$rs[title]}</a> </li>
      {/get}
      </ul>
      <span></span> </div>
    <div class="video_nav_btm"></div>
  </div>
 <div id="mian_r_1">
    <div class="bdr_1">
	<h2>影片名称:{$title}</h2>
      <p>
	  {if $allow_priv}<!--判断阅读权限-->
		  {if $allow_readpoint}<!--判断是否已经扣点-->
			 {$ku6video}
		  {else}
			<span style='background:#E4F5FA'><a href='readpoint.php?contentid={$contentid}'>阅读本文需要消耗<font color='red'>{$readpoint}</font>点，您确认查看吗？</a></span>
		  {/if}
	  {/if}
	  </p>
      <div class="video_1"><ul><li><a href="#">{$userid}</a>　<a href="{$MODULE[message][url]}send.php?userid={$r[userid]}" class="orange">给他留言</a>　<span class="c_gray">发布于：{$updatetime}</span></li> {if $keywords}<li><strong>标签:</strong>{$keywords}</li>{/if}{if $PHPCMS[show_hits]}<li><strong>浏览次数：</strong><span id="hits">0</span></li>{/if} 
      </ul><img src="{avatar($r[userid])}" height="48" width="48" alt="{$r[username]}"/>
      </div>
      <h4>影片简介</h4>
      <div class="video_txt_1">{$content}</div>
      <h4>影片剧照</h4>
      <ul class="pic_list">
	  {if $photo}
      {loop $photo $n $r}
		<li><a href="{$r[filepath]}"><img src="{$r[thumb]}" width="136" height="180" /></a></li>
	  {/loop}
      {/if}
	  </ul>
    </div>
  </div>
</div>
</div>
<!--end main-->
<script language="JavaScript" src="count.php?contentid={$contentid}"></script>
{template 'phpcms','footer'}